#ifndef _CGUI_H
	
	#include <irrlicht.h>
	#include <iostream>
	#define _CGUI_H

	#pragma warning(disable : 4996)

	#include <wchar.h>

	using namespace irr;

	using namespace core;
	using namespace scene;
	using namespace video;
	using namespace io;
	using namespace gui;

	#pragma comment(lib, "Irrlicht.lib")
	#include "CPlayerGUI.h"
	#include "BlizStretch.h"
	class cGUI
	{
		private:
			video::E_DRIVER_TYPE  m_nDriverType;
			IrrlichtDevice       *m_idDevice;
			IGUIEnvironment      *m_env;
			IGUIImage            *m_ManaBar;
			IGUIImage            *m_HealthBar;
			IGUIImage            *m_MainBar;
			IGUIImage            *m_Marco;
			//IGUIImage            *m_Curbas2;
			ITexture             *m_oTextureMana;
			ITexture             *m_oTextureHealth;
			ITexture             *m_oTextureMainBars;
			ITexture             *m_oBarrita1;
			ITexture             *m_oBarrita2;
			ITexture             *m_oMarco;
			//ITexture             *m_oCurbas2;
			video::IVideoDriver  *m_oDriver;

			bool                  m_bUsePercentages;	
			int                   m_nHealth; // Si m_bUsePercentages -> setHealthPercentage 
			int                   m_nMana;   // Si m_bUsePercentages -> setManaPercentage

			void setHealth           (int nHealth);
			void setMana             (int nMana);
			void setHealthPercentage (int nPercentage);
			void setManaPercentage   (int nPercentage);
			bool m_bUpdated;

		public:
			cGUI() { m_bUsePercentages = false; };
			void SetDriverType       (video::E_DRIVER_TYPE nDriverType) { m_nDriverType = nDriverType; };
			void SetDevice           (IrrlichtDevice *idDevice)         { m_idDevice = idDevice;  m_oDriver = m_idDevice->getVideoDriver(); };
			void Init                (void);
			void Draw                (void);
			void SetHealth           (int nHealth);
			void SetMana             (int nMana);
			void SetUsePercentage    (bool bUsePercentage) { m_bUsePercentages = bUsePercentage; };
			void DisplayData         (void);
	};

#endif // _CGUI_H